package jmine.tec.persist.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Anotação para criação de um conjunto de constraints.
 * 
 * @author lundberg
 */
@Inherited
@Retention(RetentionPolicy.RUNTIME)
@Target(value = { ElementType.METHOD, ElementType.TYPE })
public @interface Constraints {

    /**
     * Conjunto de constraints
     */
    Constraint[] value();
}
